/**
 * 
 */
package vn.smartware.co.framework.connection;

import vn.smartware.co.framework.exception.ClientException;
import vn.smartware.co.framework.exception.ServerException;
import vn.smartware.co.framework.exception.SessionTimeOutException;
import vn.smartware.co.framework.form.ActionForm;

/**
 * ConnectAction
 * @author thuctt
 */
public interface ConnectAction {
	
	/**
	 * REQUEST_COOKIE = "Cookie"
	 */
	public String REQUEST_COOKIE = "Cookie";
	/**
	 * RESPONCE_COOKIE = "Set-Cookie"
	 */
	public String RESPONCE_COOKIE = "Set-Cookie";
	
	/**
	 * execute a method sent by Client
	 * executeRequest: 
	 * @param form
	 * @return ActionForm
	 * @throws ClientException 
	 * @throws ServerException 
	 * @throws SessionTimeOutException 
	 */
	public ActionForm executeRequest(ActionForm form) throws ClientException,
	ServerException, SessionTimeOutException;
}
